/*
 * Tos change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.EthnicityFacade;
import org.ipti.br.tag.entity.Ethnicity;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author root
 */
@Stateless
public class EthnicityBO implements Serializable {

    @Inject
    private EthnicityFacade ethnicityDAO;

    public EthnicityFacade getEthnicityDAO() {
        return ethnicityDAO;
    }

    public void create(Ethnicity ethnicity) {
        getEthnicityDAO().create(ethnicity);
    }

    public void edit(Ethnicity ethnicity) {
        getEthnicityDAO().edit(ethnicity);
    }

    public void remove(Ethnicity ethnicity) {
        getEthnicityDAO().remove(ethnicity);
    }

    public Ethnicity find(Object id) {
        return getEthnicityDAO().find(id);
    }

    public List<Ethnicity> findAll() {
        return getEthnicityDAO().findAll();
    }

    public void editForSynchronization(Ethnicity ethnicity) {
        getEthnicityDAO().editForSynchronization(ethnicity);
    }

    public List<Ethnicity> findAllOrder() {
        return getEthnicityDAO().findAllOrder();
    }
}
